package com.budwk.app.sqfwV2.enums;

import lombok.Getter;

/**
 * @BelongsProject: dfxy-shequ
 * @Author: yangweimin
 * @CreateTime: 2024-01-31  16:24
 * @Description: TODO
 */
@Getter
public enum RedWhite {

    RED("红事","婚事办理"),
    WHITE("白事","人员死亡信息"),
    ;

    private String name;
    private String anotherName;

    RedWhite(String name,String anotherName) {
        this.name = name;
        this.anotherName = anotherName;
    }

    public static String getAnotherName(String name) {
        for (RedWhite o : RedWhite.values()) {
            if (o.getName().equals(name)) {
                return o.getAnotherName();
            }
        }
        return null;
    }
}
